package fy.hr.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class expertsbean {
	private String code;// 工号
	private String job;// 职级
	private String state;// 状态

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;

	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getID() {
		return new StringBuilder().append("code").append(code).toString();
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();

		jo.put("code", code);
		jo.put("job", job);
		jo.put("state", state);

		return jo;
	}

}
